package lec11.am.thread.unsafe;
//非线程安全的
public class UseStat {
int userCount;
public int getUserCount() {
return userCount;
}
public void setUserCount(int userCount) {
this.userCount = userCount;
}
public void increment() {
++userCount;
}
public void decrement() {
--userCount;
}
}